package com.person.yhzs.user.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.net.ftp.FTPFile;

import java.util.Date;
import java.util.List;

/**
 * @author luolin
 */
public class FileDto extends FTPFile {

    /**
     * 文件后缀名
     */
    private String suffixName;
    /**
     * 所属文件夹
     */
    private String folder;
    private List<FileDto> children;
    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" , timezone="GMT+8")
    private Date createTime;

    public List<FileDto> getChildren() {
        return children;
    }

    public void setChildren(List<FileDto> children) {
        this.children = children;
    }

    public String getSuffixName() {
        return suffixName;
    }

    public void setSuffixName(String suffixName) {
        this.suffixName = suffixName;
    }

    public String getFolder() {
        return folder;
    }

    public void setFolder(String folder) {
        this.folder = folder;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

}
